Footnotes - JJWheatley

Customizing Models with Ollama

Initial paragraphs goes here

Creating Custom Models via CLI

Copying A Model

N.B. You need to be using a bash-like shell for some ollama commands. On windows this can be done via Git Bash

Step 1: Create A Model File

To copy an AI model you can use:

Step 2: Customize the Model File

At the end of the file, add SYSTEM """{Prompt}"""

Step 3: Generate a Model from the Model File

To Generate a model, you need a model file (see step 1). Then you can use:

More About the ".modelfile"

A most basic Model file

FROM llama2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are Mario from super mario bros, acting as an assistant.

Parameters

References


  1. ollama/docs/modelfile.md at main · ollama/ollama (github.com) ↩︎